#include <iostream>
#include <cstdio>
#include <vector>
#include <cmath>

using namespace std; 

struct score_s {
	int w, l; 
}; 

int main()
{
	string line; 
	vector <score_s> score11, score21; 
	score_s sc11 = {0, 0}, sc21 = {0, 0}; 
	int diff; 
	int end=0; 

	//freopen("p1042_1.in", "r", stdin); 
	while(!end && cin>>line) {
		for (unsigned i=0; i<line.size(); i++) {
			if (line[i]=='E') {
				end=1; 
				break;
			}
			if (line[i]=='W') {
				sc11.w ++; 
				sc21.w ++; 
			} else {
				sc11.l ++; 
				sc21.l ++; 
			}
			diff = abs(sc11.w - sc11.l); 
			if ((sc11.w>=11 || sc11.l>=11) && diff>=2) {
				score11.push_back(sc11); 
				sc11.w = sc11.l = 0; 
			}
			diff = abs(sc21.w - sc21.l); 
			if ((sc21.w>=21 || sc21.l>=21) && diff>=2) {
				score21.push_back(sc21); 
				sc21.w = sc21.l = 0; 
			}
		}
	}
	if (sc11.w>=0 || sc11.l>=0) {
		score11.push_back(sc11); 
		sc11.w = sc11.l = 0; 
	}
	if (sc21.w>=0 || sc21.l>=0) {
		score21.push_back(sc21); 
		sc21.w = sc21.l = 0; 
	}
	for (unsigned i=0; i<score11.size(); i++) {
		cout<<score11[i].w<<":"<<score11[i].l<<"\n"; 
	}
	cout<<"\n"; 
	for (unsigned i=0; i<score21.size(); i++) {
		cout<<score21[i].w<<":"<<score21[i].l<<"\n"; 
	}
	return 0; 
}


